package com.koron.ticket.workchange.ticketchangemember.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.koron.bean.base.BaseBean;
import com.koron.ticket.work.workmember.bean.WorkMember;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
public class TicketChangeMember extends BaseBean {

    @ApiModelProperty("工作票ID")
    private String workTicketId;

    @ApiModelProperty("变更单ID")
    private String changeId;

    @ApiModelProperty("工作负责人账户")
    private String directorAccount;

    @ApiModelProperty("工作负责人名称")
    private String directorName;

    @ApiModelProperty("工作许可人账户")
    private String permitAccount;

    @ApiModelProperty("工作许可人名称")
    private String permitName;

    @ApiModelProperty("增加的工作成员账户")
    private String addMemberAccount;

    @ApiModelProperty("增加的工作成员名字")
    private String addMemberName;

    @ApiModelProperty("减少的工作成员账户")
    private String decreaseMemberAccount;

    @ApiModelProperty("减少的工作成员名字")
    private String decreaseMemberName = "";

    @ApiModelProperty("变更时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Date changeTime;

    @ApiModelProperty(value = "工作班组成员")
    private List<WorkMember> workMemberList;

    @ApiModelProperty("备注")
    private String description;

    @ApiModelProperty(value = "工作班组成员 含临时")
    private List<ChanageMemberDet> det;

}
